
clear all

local path0="C:\Dropbox\GeneticsProject (1)\REStat\round_accepted_replication_files\"

set more off

use "`path0'data\Geography\dist_cepii.dta", clear

keep if iso_o=="GBR"

foreach var in contig comlang_off comlang_ethno colony comcol curcol col45 smctry dist distcap distw distwces {
	rename `var' geo_UK_`var'
}


rename  iso_d countrycode
drop iso_o

replace countrycode="GER" if countrycode=="DEU"
replace countrycode="SCG" if countrycode=="YUG"

keep countrycode geo_UK_distw

compress
save "`path0'Workfiles\geo_data_relative_to_UK.dta", replace

